# Create your views here.
from django.views.generic.simple import direct_to_template
from mainapp.models import Level
from mainapp.models import Color
import simplejson


def home(request, response=None):
    context = {}
    context['levels'] = Level.objects.all()
    context['request'] = request
    return direct_to_template(request, 'main.html', extra_context=context)
